<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'>
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="icon" href="./favicon.ico">
  <link rel="stylesheet" href="./lib/mui/css/mui.css">
  <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
  <link rel="stylesheet" href="./css/common.css">
  <link rel="stylesheet" href="./css/searchList.css">
</head>
<body>
  <div class="lt_container">
    <div class="lt_header">
      <a href="javascript:history.back()" class="icon_left">
        <i class="mui-icon mui-icon-back"></i>
      </a>
      <h4>乐淘云购</h4>
      <a href="search.html" class="icon_right">
        <i class="fa fa-search"></i>
      </a>
    </div>
    <div class="lt_main">
      <div class="mui-scroll-wrapper">
        <div class="mui-scroll">
          <div class="search">
            <input type="text" name="search" placeholder="请输入搜索关键字">
            <button class="mui-btn mui-btn-primary btn_search">搜索</button>
          </div>
          <div class="sort">
            <a href="#">上架时间 <i class="fa fa-angle-down"></i></a>
            <a href="#" data-type="price">价格 <i class="fa fa-angle-down"></i></a>
            <a href="#" data-type="num">库存 <i class="fa fa-angle-down"></i></a>
            <a href="#">折扣 <i class="fa fa-angle-down"></i></a>
          </div>
          <div class="lt_product mui-clearfix">
            
          </div>
        </div>
      </div>
    </div>
    <div class="lt_footer">
      <ul>
        <li>
          <a href="index.html">
            <i class="fa fa-home"></i>
            <p>首页</p>
          </a>
        </li>
        <li>
          <a href="category.html">
            <i class="fa fa-bars"></i>
            <p>分类</p>
          </a>
        </li>
        <li>
          <a href="shopcart.html">
            <i class="fa fa-shopping-cart"></i>
            <p>购物车</p>
          </a>
        </li>
        <li>
          <a href="user.html">
            <i class="fa fa-user"></i>
            <p>会员中心</p>
          </a>
        </li>
      </ul>
    </div>
  </div>

  <script type="text/template" id="tmp">
    {{ if data.length === 0 }}
    <p>暂无搜索结果</p>
    {{ else }}
    {{ each data v i }}
    <a href="product.html?key={{ v.id }}">
      <img src="{{ v.pic[0].picAddr }}" alt="">
      <p class="mui-ellipsis-2">{{ v.num }}{{ v.proName }}</p>
      <p>
        <span class="price">¥{{ v.price }}</span>
        <span class="oldPrice">¥{{ v.oldPrice }}</span>
      </p>
      <button class="mui-btn mui-btn-primary">立即购买</button>
    </a>
    {{ /each }}
    {{ /if }}
  </script>

  <script type="text/template" id="tmp2">
    {{if rows.length === 0}}
    <p>当前分类下没有数据</p>
    {{/if}}
    {{ each rows v i }}
    <li>
      <a href="#">
        <img src="{{ v.brandLogo }}" alt="">
        <p>{{ v.brandName }}</p>
      </a>
    </li>
    {{/each}}
  </script>
  <script src="./lib/mui/js/mui.js"></script>
  <script src="./js/common.js"></script>
  <script src="./lib/artTemplate/template-web.js"></script>
  <script src="./lib/zepto/zepto.min.js"></script>
  <script src="./js/searchList.js"></script>
</body>
</html>